package com.ysd.lis.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * cold_chain.t_user
 * </p>
 *
 * @author peng
 * @since 2021-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String orgName;

    private String username;

    private String code;

    private String userMode;

    private String password;

    private String realname;

    private String tel;
    private String hisNo;
    private String lisNo;
    @TableField(exist = false)
    private SysOrganization organization;

    /**
     * CA序列号
     */
    private String initializer;

    private String initializeFlag;

    private String email;

    private String enable;

    private String inputCode;

    private String hisEmployeeId;
    private String hisEmployeeCode;
    private String empowerNum;
    private String signUrl;
    private String caSignUrl;
    /*是否检验医师*/
    @TableField("IS_TEST_DOCTOR")
    private Integer isTestDoctor;
    /*是否审核医师*/
    @TableField("IS_CHK_DOCTOR")
    private Integer isChkDoctor;

    @TableField(exist = false)
    private String deptId;
    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private List<SysMenu> parentMenuList;
    @TableField(exist = false)
    private List<String> roleIds;
    /**
     * 是否有差异性
     */
    @TableField(exist = false)
    private Integer differ;

    @TableField(exist = false)
    private String keywords;

    @TableField(exist = false)
    private List<Map> orgList;

    @TableField(exist = false)
    private String caUserId;

    @TableField(exist = false)
    private String signimg;

    @TableField(exist = false)
    private String status;

    @TableField(exist = false)
    private String idCard;

    @TableField(exist = false)
    private String activeCode;

    @TableField(exist = false)
    private String activeQrCode;
    @TableField(exist = false)
    private String companyCode;

    @Override
    public String toString() {
        return "SysUser{" + ", username='" + username + '\'' + ", password='" + password + '\'' + ", realname='" + realname + '\'' + ", tel='" + tel + '\'' + ", hisNo='" + hisNo + '\'' + ", lisNo='" + lisNo + '\'' + ", organization=" + organization + ", initializer='" + initializer + '\'' + ", initializeFlag='" + initializeFlag + '\'' + ", email='" + email + '\'' + ", enable='" + enable + '\'' + ", hisEmployeeId='" + hisEmployeeId + '\'' + ", hisEmployeeCode='" + hisEmployeeCode + '\'' + ", deptId='" + deptId + '\'' + ", deptName='" + deptName + '\'' + ", parentMenuList=" + parentMenuList + '}';
    }
}
